package model

// 存储短信验证码
func SaveImgCode(code, uuid string) error {
	conn := RedisPool.Get()

	defer conn.Close()

	// 存储短信验证码到 redis 中
	_, err := conn.Do("setex", uuid, 60*5, code)

	return err
}
